package com.cmc.cloud.cmclink.doc.api.document.req.so;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 订舱主Response DTO
 *
 * @author 陈正
 */
@Schema(description = "管理后台 - 订舱split DTO")
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class SoSplitCombineInfoReqDto {
    @Schema(description = "订舱号")
    @Length(max = 20, message = "订舱号支持最大长度{max}")
    private String bookingNo;
    @Schema(description = "订舱预配信息")
    private List<SoForecastSplitCombineDto> soForecastList;
    @Schema(description = "订舱货物信息")
    private List<SoCargoSplitCombineDto> soCargoList;
    @Schema(description = "客户参考号")
    @Length(max = 50, message = "客户参考号支持最大长度{max}")
    private String referenceNo;
}
